#include "friendstimeline.h"
#include <WhaleTwitterStreamTab>
#include <WhaleTwitterConnect>
#include <WhaleButton>
#include <QtDebug>

WhaleTwitterStreamTab * FriendsTimeline::generateTab() {
    WhaleTwitterStreamTab * tab = new WhaleTwitterStreamTab( this->name() );
    tab->connector()->watchFriendsTimeline();

    return tab;
}

WhaleTwitterStreamTab * FriendsTimeline::restoreTab( QVariant v ) {
    return this->generateTab();
}

QVariant FriendsTimeline::constructors( WhaleTabBase * tab ) {
    return 0;
}

WhalePluginStarter * FriendsTimeline::generateStarter() {
    WhalePluginStarter * starter = new WhalePluginStarter();
    starter->setIcon( QIcon( ":/images/oxygen/tab-add.png" ) );
    starter->setWhatsThis( "Add a new tab" );

    return starter;
}

QString FriendsTimeline::name() {
    return "Friends Timeline";
}

Q_EXPORT_PLUGIN2( friendstimeline, FriendsTimeline );
